# import cv2
import time
# img = cv2.imread("./dog.jpg", cv2.IMREAD_UNCHANGED)
# print(img.shape)
# cv2.imshow("srhe", img)
# k = cv2.waitKey(0)
# if k == 27:
#     # cv2.destroyAllWindows() #删除所有窗口

    cv2.destroyWindow("srhe") #删除指定窗口

blue = img[:, :, 0]
cv2.imshow("srhe1", blue)
cv2.waitKey(0)
green = img[:, :, 1]
cv2.imshow("srhe2", green)
print(green.shape)
cv2.waitKey(0)
red = img[:, :, 1]
cv2.imshow("srhe3", red)
cv2.waitKey(0)

# def inside(group,s,z):
#     print('欢迎来到王者荣耀')
#     print(f'你出生在{group}方阵营')
#     print(f'敌军还有{s}到达战场')
#     time.sleep(s)
#     print(f'{z}出击')
# def outer(func):
#     def wrapper(*args,**kwargs):
#         start = time.time()
#         func(*args,**kwargs)
#         end = time.time()
#         print(end-start)
#     return wrapper
# inside=outer(inside('蓝色',3,'跑车'))